home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PsL Monthly 1993 December
/
PSL Monthly Shareware CD-ROM (December 1993).iso
/
prgmming
/
dos
/
gen_vid
/
sam2.exe
/
SAM2.DOC
< prev
Wrap
Text File
|
1993-07-06
|
7KB
|
139 lines
Source Application Manager
=-=-=-=-=-=-=-=-=-=-=-=-=-
First of all I have to print here the usual DISCLAMER trick, just skip it
if, like me, you know it by heart...
DISCLAIMER OF WARRANTY
THIS SOFTWARE AND MANUAL ARE SOLD "AS IS" AND WITHOUT
WARRANTIES AS TO PERFORMANCE OF MERCHANTABILITY OR ANY
OTHER WARRANTIES WHETHER EXPRESSED OR IMPLIED. BECAUSE
OF THE VARIOUS HARDWARE AND SOFTWARE ENVIRONMENTS INTO
WHICH THIS PROGRAM MAY BE PUT, NO WARRANTY OF FITNESS FOR
A PARTICULAR PURPOSE IS OFFERED. GOOD DATA PROCESSING
PROCEDURE DICTATES THAT ANY PROGRAM BE THOROUGHLY TESTED
WITH NON-CRITICAL DATA BEFORE RELYING ON IT. THE USER
MUST ASSUME THE ENTIRE RISK OF USING THE PROGRAM. ANY
LIABILITY OF THE SELLER WILL BE LIMITED EXCLUSIVELY TO
PRODUCT REPLACEMENT OR REFUND OF PURCHASE PRICE.
HISTORY:
────────
Developping several applications not only for PC computers, I was fed of
having to always remember the different commands to access to different
editor functions depending on the language used. I also had to remember
the command line syntax to compile and link with and without debug records
Etc ...
I decided to develop a common "desktop like" system that allows me to
always use the same commands for whatever development on whatever computer...
Here is how SAM was born a couple of years ago (April 1990). The memory
requirements of some compilers or utilities (such as MAKE) made me create
a new version that swaps itself out of memory before invoking an external
procedure.
That's SAM2.COM created end 1992 and tested since by our programming
structure using several types of computers (8088,286,386 and even 486 !)
As an example, you will find enclosed a couple of batch files that I use
every day with my SAM2.COM program. In fact SAM2 was developed in assembly
using SAM itself !!!
You will also find on the disk a set of batch files to manage you fax
including the transfer via a fax-card ...
DESCRIPTION:
────────────
SAM2 is a small shareware utility that provides an easy way to select and
process any module part of an application development. From the SAM2 program
you can EDIT, COMPILE, LINK with any Editor of your choice, any compiler and
linker. The TRANSFER option allows you to send the resulting porgram on an
eventual target machine via COM1 or COM2 at any speed between 300 up to 38400
baud (depending on the paramters set in OPTION menu). OPTION allows you to
setup communication parameters if needed and determine if the compiler and
linker should create a simulation or target version of the application
(ie: you can add DEBUG statements in simulation mode). EXTERN allows you
to add some new features that are specific to the actual development
(ie: edit linker config file, run simulator, ....)
Every function can be parametrized externally to fit nearly any case.
The main screen displays a picklist style box showing every files that fit
in the <filespec> option given on the command line.
You can go thru this list using the UP,DOWN,PAGEUP,PAGEDOWN,HOME and END keys
or when you "click" the mouse on it. You can even access to a file using its
initial letter. If you press it twice you go to the next entry starting with
this letter, and so on ... until you wrap around and start again.
The main menu displays EDIT COMPILE LINK TRANSFER OPTION EXTERN HELP QUIT
All these choices can be accessed by the ALT + first letter combination or
using F1 to F7 key in sequence or using a mouse. (Note that QUIT can also be
accessed thru the ESC key).
Any of these choices (except OPTION & HELP) will call an external batch file
which name is EXECF?.BAT where ? stands for the corresponding function key.
ie: EDIT will call EXECF1.BAT, COMPILE calls EXECF2.BAT, etc ...
NOTE : If the corresponding EXECF?.BAT file does not exist, the menu item
───── will be disabled. Even OPTION must have a dummy EXECF5.BAT file
The batch files are called with several parameters:
%1 : Whole filename chosen in the list (ie: MYFILE.SRC)
%2 : Radical name (ie: MYFILE )
%3 : Extension (ie: SRC )
%4 : Target/Simulation Flag from the OPTION menu (ie: T or S)
%5 : Communication port from the OPTION menu (ie: 1 or 2)
%6 : Communication speed from the OPTION menu (ie: 9600 )
for the EXECF6.BAT only (extern function)
%7 : Name of the external function invoked (converted to Upper case !)
Syntax : SAM2 <filespec> <exec path> <System name> [<extern function> ...]
<filespec> : File specification for the source list (ie: *.SRC)
The corresponding files will be display as a list in which you
can select an item and process it.
<exec path>: Is the path where all the exec batch files can be found.
<system name> : Is a 15 max. character name displayed on the lower right
corner of the screen to describe the system you are working
on.
<extern function> : optional new function that you want to add in this
development system (ie: CONFIG)
Note: If this function is composed of several words, just
───── type them between quotes (ie:"Config Link")
Example: SAM2 *.SRC . "My SYSTEM" Extern1
Will call SAM2.COM, displaying every SRC files in the picklist box, calling
every EXECF?.BAT file in the current directory, showing My SYSTEM as the
system name on the lower right corner of the screen, and adding Extern1 as
an Item of the EXTERN menu.
1.During spawning of command.com for EXECF?.BAT, the SAM2 programs overlays
itself either on disk or in EMS memory, if any, to leave as much as possible
free space for the EXECF?.BAT execution. The remaining part of SAM2 (less
than 1 Ko) will take back control and swap in again.
2.The filespec can be multiple filespecs separated by semi-colons (;).
I.e.: SAM *.C;*.H \BATCH TEST
will display all the .C and .H files contained in the current directory.
REGISTRATION : Send me a postcard showing the town you live in ! That's all.
If you want to give me any input, just post me a message...
COMPUSERVE ID = [76557,1115] or
Olivier MOGENOT
Etang des Grenouilles
38790 CHARANTONNAY
FRANCE